@include('admin.public.header')
<div id="wrapper" class="gray-bg" style="height: 100%">
    <div class="wrapper-content animated fadeIn">
        <div class="row">
            <div class="col-lg-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>用户列表</h5>
                    </div>
                    <div class="ibox-content">
                        <!--搜索框开始-->
                        <div class="row">
                            <div class="col-sm-12">
                                <form class="form-inline" method="post" action="">
                                    <div class="form-group form-group-sm">
                                        <input class="form-control" type="text" name="user_name" value="" placeholder="用户名">
                                    </div>
                                    <button class="btn btn-primary btn-sm" type="submit"><i class="fa fa-search"></i> 搜索</button>
                                </form>
                            </div>
                        </div>
                        <!--搜索框结束-->
                        <div class="hr-line-dashed"></div>
                        <div class="data-table table-responsive">
                            <table class="table table-bordered table-hover">
                                <thead>
                                <tr class="table-text-c">
                                    <th>用户名</th>
                                    <th>Email地址</th>
                                    <th>加入时间</th>
                                    <th>上次登录时间</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                @if (!empty($list))
                                    @foreach ($list as $val)
                                        <tr class="table-text-c">
                                            <td>{{ $val->user_name }}</td>
                                            <td>{{ $val->email }}</td>
                                            <td>{{ date('Y-m-d H:i:s', $val->add_time) }}</td>
                                            <td>{{ date('Y-m-d H:i:s', $val->last_login_time) }}</td>
                                            <td>@if ($val->status == 1)启用@else禁用@endif</td>
                                            <td>
                                                <a href="">修改</a>&nbsp;
                                                <a href="">删除</a>
                                            </td>
                                        </tr>
                                    @endforeach
                                @else
                                    <tr class="table-text-c">
                                        <td colspan="100"><i class="fa fa-info-circle"></i> 暂无数据</td>
                                    </tr>
                                @endif
                                </tbody>
                            </table>
                            <div class="text-center">{{ $list->links() }}</div>
                        </div>
                        <div class="text-right">共5条数据，第1页，共1页</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@include('admin.public.footer')